

CC := $(CROSSCOMPILE)gcc
AR := $(CROSSCOMPILE)ar

export HTTPS_SUPPORT=1
export TARGET_HOST?=x86_64
export HOST?=x86_64

LIBWD_DIR=$(CURDIR)/../libwd
include ../libwd/Makefile.inc

CFLAGS += -Wall -I../ -I../libwd/libghttp 
LDFLAGS += -pthread

EXEC=test

SRCS=$(wildcard *.c *.h)
OBJS=$(subst .c,.o,$(SRCS))
all: $(EXEC)
	

$(EXEC):$(OBJS)
	$(CC) $(CFLAGS) $(CFLAGS_WD) $(OBJS) -o $@  $(LDFLAGS) $(LDFLAGS_WD) 

%.o:%.c
	$(CC) -c $(CFLAGS) $(CFLAGS_WD) $< -o $@ 

clean:
	rm $(EXEC) -f;
	rm ./bin -rf;
	rm *.o -f;
	rm *.log -f;


.PHONY: all clean distclean 
